Type Definitions

The following type definitions are available globally.

  • A block used when returning back the waveform data. The waveform data itself will be an array of float arrays, one for each channel, and the length indicates the total length of each float array. - parameter: waveformData An array of float arrays, each representing a channel of audio data from the file - parameter: length An int representing the length of each channel of float audio data

    Declaration

    Objective-C

    typedef void (^EZAudioWaveformDataCompletionBlock)(float **, int)

    Swift

    typealias EZAudioWaveformDataCompletionBlock = (UnsafeMutablePointer

    Parameters

    waveformData

    An array of float arrays, each representing a channel of audio data from the file

    length

    An int representing the length of each channel of float audio data